<?php
/**
 * Инициализация путей, расчет общего времени выполнения приложения,
 * запуск приложения через bootstrap
 */
$start = microtime(true);
define('PUBLIC_PATH', dirname(__FILE__));
define('APP_PATH', dirname(__FILE__) . '/../app');
define('TMP_PATH', APP_PATH . '/tmp');
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . APP_PATH . '/includes' . PATH_SEPARATOR . APP_PATH . '/../../' . PATH_SEPARATOR . APP_PATH . PATH_SEPARATOR . APP_PATH . '/models' . PATH_SEPARATOR . APP_PATH . '/forms' . PATH_SEPARATOR . APP_PATH . '/controllers');
require ('bootstrap.php');
Core::run();
$end = microtime(true);
$time = $end - $start;
echo '<!--- Execute: ' . $time . ' seconds --->';